<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪装界面</title>
    <style>
        /* 页面基础样式 */
        body {
            font-family: Arial, sans-serif;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            background-color: #f4f4f4;
        }

        .container {
            text-align: center;
            padding: 50px;
            border-radius: 10px;
            background-color: #fff;
            box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
        }

        .btn {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
            font-size: 16px;
        }

        .btn:hover {
            background-color: #45a049;
        }

        .login-form {
            display: none;
            text-align: center;
            margin-top: 20px;
        }

        .login-form input {
            padding: 10px;
            margin: 10px;
            width: 250px;
            border-radius: 5px;
            border: 1px solid #ccc;
        }

        .login-form button {
            padding: 10px 20px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 5px;
            cursor: pointer;
        }

        .login-form button:hover {
            background-color: #45a049;
        }

        /* 伪装效果：看起来像一个普通的登录界面 */
        .title {
            font-size: 24px;
            margin-bottom: 30px;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="title">欢迎使用系统</div>
        <button class="btn" onclick="showLoginForm()">登录</button>
        
        <div class="login-form" id="loginForm">
            <h3>请输入您的账号和密码</h3>
            <input type="text" id="username" placeholder="用户名" required>
            <input type="password" id="password" placeholder="密码" required>
            <br>
            <button onclick="login()">提交</button>
        </div>
    </div>

    <script>
        // 显示登录表单
        function showLoginForm() {
            document.getElementById('loginForm').style.display = 'block';
        }

        // 验证用户名和密码并跳转
        function login() {
            var username = document.getElementById('username').value;
            var password = document.getElementById('password').value;

            // 这里可以替换成实际的验证逻辑
            if (username === "admin" && password === "123456") {
                // 登录成功，跳转到通信页面
                window.location.href = "communication.html"; // 这里需要修改成你通信页面的路径
            } else {
                alert("用户名或密码错误！");
            }
        }
    </script>
</body>
</html>
